import PageTools from '@/components/PageTools'
import ImportExcel from '@/views/employee/components/import-excel.vue'
import SelectTree from '@/views/employee/components/select-tree.vue'
import ImageUpload from '@/views/employee/components/upload-image.vue'

// 插件的作用：批量全局注册组件
// Vue.use()传入一个对象
// 对象必须提供一个install函数
// 该函数会在Vue.use时自动执行
export default {
  install(Vue) {
    Vue.component(PageTools.name, PageTools)
    Vue.component(ImportExcel.name, ImportExcel)
    Vue.component(SelectTree.name, SelectTree)
    Vue.component(ImageUpload.name, ImageUpload)
  }

}

